package com.com.knowledgepaymentmanagementsystem.service.marketing.impl;

import com.com.knowledgepaymentmanagementsystem.mapper.marketing.GroupMapper;
import com.com.knowledgepaymentmanagementsystem.pojo.marketing.Group;
import com.com.knowledgepaymentmanagementsystem.service.marketing.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 冯炜轩
 * @Date 2025/9/23 15:11
 * @Version 1.0
 * @Description: 
 */
@Service
public class GroupServiceImpl implements GroupService {
    @Autowired
    private GroupMapper groupMapper;

    @Override
    public List<Group> getGroup(Group group) {
        return groupMapper.getGroup(group);
    }

    @Override
    public Object insertGroup(Group group) {
        return groupMapper.insert(group);
    }

    @Override
    public void updateGroup(Group group) {
        groupMapper.updateById(group);
    }

    @Override
    public void deleteGroup(Integer id) {
        groupMapper.deleteById(id);
    }
}
